{% extends "base.html" %}
 

{% block head %}
    <title>脚本管理</title>
{% endblock %} 

{% block content %}
    <table class="table mb0 pr15 ranger-box2  " >
                        <thead>
                            <tr>
                                <th >ID</th>
                                <th >脚本名</th>
                                <th >脚本内容</th>
                                <th >创建时间</th>
                                <th >创建人</th>
                            </tr>
                        </thead>
                        <tbody>
                        {% for res in res_list %}
                            <tr style="text-align:left;">
                                <td>{{ res.id }}</td><td>{{ res.s_name }}</td><td>{{ res.content }}</td><td>{{ res.created_time }}</td><td>{{ res.work_id }}</td>
                                <td>
                                    <a href="#" style="color: white" ><button class="btn btn-xs btn-success"> <i class="glyphicon glyphicon-ok"></i> </button></a>
                                    <a href="#" style="color: white" ><button class="btn btn-xs btn-warning"> <i class="glyphicon glyphicon-edit"></i> </button></a>
                                    <a onclick="return deleteJob();" href="#" style="color: white" ><button class="btn btn-xs btn-danger"> <i class="glyphicon glyphicon-remove"></i> </button></a>
                                </td>
                            </tr>
                        {% endfor %}
                        </tbody>
                    </table>
    
{%endblock%} 